/*
 * @Date: 2023-02-09 16:09:58
 * @LastEditTime: 2023-02-22 12:49:32
 * @FilePath: /hash-guess-game/src/router/module/game.ts
 * 介绍:俱乐部路由
 */
import type { RouteRecordRaw } from "vue-router";
import { DialogRouter } from "../interface";
import { useI18n } from "@@/hooks/useI18n";
const { t } = useI18n();

const routes: Array<RouteRecordRaw & DialogRouter> = [
  {
    name: "gameRule",
    path: "/gameRule",
    component: () => import("@@/views/gameRule/gameRule.vue"),
    meta: {
      title: t("bi-sai-gui-ze"),
    },
  },
  {
    name: "hashRaceCourse",
    path: "/hashRaceCourse",
    component: () => import("@@/views/hashRaceCourse/hashRaceCourse.vue"),
    meta: {
      title: t("ha-xi-sai-chi"),
    },
  },
  {
    name: "arena",
    path: "/arena",
    component: () => import("@@/views/arena/arena.vue"),
    meta: {
      title: t("jing-ji-chang"),
    },
  },
  {
    name: "drawCoin",
    path: "/drawCoin",
    component: () => import("@@/views/drawCoin/drawCoin.vue"),
    meta: {
      title: t("ti-bi"),
    },
  },
];
export default routes;
